package io;

import javafx.scene.web.WebHistory;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class BRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("pw.txt");
        InputStreamReader isr = new InputStreamReader(fis, StandardCharsets.UTF_8);
        BufferedReader br = new BufferedReader(isr);
        long start = System.currentTimeMillis();
        String line;
        while ((line=br.readLine())!=null){

            System.out.println(line);

        }
        long end = System.currentTimeMillis();
        br.close();
        System.out.println("共耗时："+(end-start)+"ms");

    }
}
